package org.ourgrid.peer.business.requester;

import java.util.ArrayList;
import java.util.List;

import org.ourgrid.common.internal.IResponseTO;
import org.ourgrid.common.internal.RequesterIF;
import org.ourgrid.peer.business.controller.RemoteWorkerProviderClientFailureController;
import org.ourgrid.peer.request.NotifyRemoteWorkerProviderClientFailureRequestTO;

public class NotifyRemoteWorkerProviderClientFailureRequester implements RequesterIF<NotifyRemoteWorkerProviderClientFailureRequestTO> {

	public List<IResponseTO> execute(
			NotifyRemoteWorkerProviderClientFailureRequestTO request) {
		List<IResponseTO> responses = new ArrayList<IResponseTO>();
		
		RemoteWorkerProviderClientFailureController.getInstance().doNotifyFailure(responses, 
				request.getRwpcPublicKey(), request.getRwpcAddress());
		
		return responses;
	}
	
}
